﻿@model IEnumerable<OnlineMediaAnalyzer.Models.RSSMap>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table class="table">
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.Name)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.ItemMapping)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.TitleMapping)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.GuidMapping)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.UrlMapping)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.DescriptionMapping)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.AuthorMapping)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.TimeMapping)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.CategoryMapping)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Self)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ItemMapping)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.TitleMapping)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.GuidMapping)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.UrlMapping)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DescriptionMapping)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.AuthorMapping)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.TimeMapping)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CategoryMapping)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Self)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.ID }) |
            @Html.ActionLink("Details", "Details", new { id=item.ID }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.ID })
        </td>
    </tr>
}

</table>
